import http from '@/libs/httpRequest'

/** 新增耗材分类 */
export const createCategory = data =>{ return http.postFormApi({ url : `/isvpc/Category/add`, data }) }
/** 更新耗材分类 */
export const updateCategoryName = data =>{ return http.postFormApi({ url : `/isvpc/Category/save`, data }) }
/** 删除耗材分类 */
export const delCategory = data =>{ return http.postFormApi({ url : `/isvpc/Category/remove`, data }) }
/** 耗材分类排序 */
export const orderCategory  = data =>{ return http.postFormApi({ url : `/isvpc/Category/order`, data }) }


/** 耗材列表页 */
export const getConsumablesList = params => { return http.getApi({ url : `/isvpc/Consumable/index`,params }) }
/** 新增耗材分类 */
export const createConsumable = data =>{ return http.postFormApi({ url : `/isvpc/Consumable/add`, data }) }
/** 编辑耗材--获取耗材详情 */
export const getConsumablesDetail = params =>{ return http.getApi({ url : `/isvpc/Consumable/info`, params }) }
/** 更新耗材 */
export const updateConsumables = data =>{ return http.postFormApi({ url : `/isvpc/Consumable/save`, data }) }
/** 耗材上下架 */
export const showConsumables = data =>{ return http.postFormApi({ url : `/isvpc/Consumable/show`, data }) }
/** 耗材补充数量 */
export const addStock = data =>{ return http.postApi({ url : `/isvpc/Consumable/addStock`, data }) }

/** 耗材领用查询 */
export const geReceiveQuery = data => { return http.postFormApi({ url : `/isvpc/Receice/consumableRecord`,data }) }
/** 耗材确认发放 */
export const confirmConsumable = data =>{ return http.postFormApi({ url : `/isvpc/Receice/confirm`, data }) }
/** 库存预警查询 */
export const getInventoryWarningQuery = params => { return http.getApi({ url : `/isvpc/Consumable/warning`,params }) }

export const getConsumableNumber  = params => { return http.postFormDataApi({url:`/isvpc/Consumable/waitConfirm`, params})}






